import React, { Component } from 'react'
import RouterView from '../../router/RouterView'
import { NavLink } from 'react-router-dom'
export default class Index extends Component {
    render() {
        return (
            <div className="wrap home-page">
                <main>
                    <RouterView routes={this.props.routes} />
                </main>
                <footer>
                    <NavLink to="/home/main">首页</NavLink>
                    <NavLink to="/home/cart">购物车</NavLink>
                </footer>
            </div>
        )
    }
}
